<%@page import="com.yymmarket.util.StringUtil,com.yymmarket.forum.bbs.*,com.yymmarket.forum.user.UserBean,com.yymmarket.forum.user.UserService,com.yymmarket.forum.util.*,com.yymmarket.forum.bbs.ContentBean,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="application/vnd.wap.xhtml+xml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
ContentAction webAction = new ContentAction(request,response);
int id = webAction.getParameterInt("id");
int fid = webAction.getParameterInt("fid");
BBSService bbs = BBSService.getInstance();

boolean flag = webAction.editPostX();
%><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%if(flag) {%><title>编辑成功</title><%} else {%>
<title>编辑帖子</title>
<%} %></head><%
if(flag) {
%><body>
<p>编辑帖子成功<br/>
<a href="content.jsp?id=<%=id %>&amp;fid=<%=fid %>">&gt;返回帖子</a><br/>
<a href="forum.jsp?id=<%=fid %>">&gt;&gt;返回<%=bbs.getBBSBeanById(fid).getTitle() %></a><br/>
</p>
</body>
<%}else {
	ContentService contentService = ContentService.getInstance();
	ContentBean bean = contentService.getContentById(id);
%><body>
<p><%= BaseUtil.top(request,response) %>
标题:<%=StringUtil.toWml(bean.getTitle()) %><br/>
<form action="editX.jsp?id=<%=id%>&amp;fid=<%=fid %>" method="post">
内容:<textarea name="content" rows="6" cols="40">
<%=bean.getContent() %>
</textarea><br/>
<input type="submit" value="确定修改"><br/>
</form>
<a href="forum.jsp?id=<%=id %>">&lt;&lt;返回<%=bbs.getBBSBeanById(fid).getTitle() %></a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</body>
<%} %></html>